:root {
  --item-duration: 2s;
  --cycle-count: 3;
  --total-cycle-duration: calc(var(--item-duration) * var(--cycle-count));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #000;
  overflow: hidden;
  text-transform: uppercase;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  filter: contrast(25) brightness(1.2);
}

.container > p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-size: 12vw;
  font-weight: 700;
  text-align: center;
}

p:not(:last-child) {
  opacity: 0;
  filter: blur(20px);
  animation-name: change;
  animation-duration: var(--total-cycle-duration);
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes change {
  0%,
  15% {
    opacity: 1;
    filter: blur(0);
  }
  33.3%,
  100% {
    opacity: 0;
    filter: blur(20px);
  }
}

p:nth-child(1) {
  color: #ed4014;
  animation-delay: 0s;
}

p:nth-child(2) {
  color: #19be6b;
  animation-delay: var(--item-duration);
}

p:nth-child(3) {
  color: #ff9900;
  animation-delay: calc(2 * var(--item-duration));
}

p:last-child {
  font-size: 8.5vw;
  color: #2d8cf0;
  letter-spacing: 1.5vw;
  opacity: 0;
  filter: blur(5px);
  transform: translate(-50%, -50%) scale(1.5);
  animation-name: movie-reveal;
  animation-duration: 4s;
  animation-delay: var(--total-cycle-duration);
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.2, 1, 0.5, 1);
}

@keyframes movie-reveal {
  100% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0.1vw;
    transform: translate(-50%, -50%) scale(1);
  }
}
